﻿@model SeagullConsulting.MvcAjaxControls.Data.Models.Phone
@using SeagullConsulting.MvcAjaxControls.Web.Mvc.Helpers;

@{
	ViewBag.Title = "Index";
}

<h2>Phone Index</h2>
@(Html.AjaxGridFor<SeagullConsulting.MvcAjaxControls.Data.Models.Phone>()
	.WithColumns(column => {
		column.Expression("Number",  p => p.Number);
	})
	.WithActionColumns(column => {
		column.ActionLink("Details", "Details", p => p.Id);
		column.ActionLink("Edit", "Edit", p => p.Id);
		column.ActionLink("Delete", "Delete", p => p.Id);
	})
	.FromDataSource(@Url.Action("ListPhone"))
	.ToHtml()
)
<br />
@Html.ActionLink("List Phones w/ pager", "ListPage")
